package com.shoulei.designpattern.decoratorPattern;

/**
 * @ClassName:RedShapeDecorator
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 14:44
 * @Verson:
 */
public class RedShapeDecorator extends ShapeDecorator{
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color: red");
    }
}
